 export class TCesium {

    viewer = null;
    scene = null;
  
    /**
     * 构造器函数：实例化cesium
     * @param {*} dom 节点id
     */
    constructor(dom) {
      Cesium.Ion.defaultAccessToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJqdGkiOiI1NGNmNGU2Yy03YTczLTQzNGMtYTQ3OC02ZjFkYzRiYTdhNmQiLCJpZCI6MjM1NDM0LCJpYXQiOjE3MjM5OTAxODV9.WEf4m1MULeKcPa37g7pGgIpw1y0i0FhGV24HrA9c-U8'
      this.viewer = new Cesium.Viewer(dom, {
        homeButton: true,
        sceneModePicker: true,
        baseLayerPicker: false, // 影像切换
        animation: true, // 是否显示动画控件
        infoBox: false, // 是否显示点击要素之后显示的信息
        selectionIndicator: false, // 要素选中框
        geocoder: false, // 是否显示地名查找控件
        timeline: true, // 是否显示时间线控件
        fullscreenButton: false,
        shouldAnimate: false,
        navigationHelpButton: false, // 是否显示帮助信息控件
      });
      this.scene = this.viewer.scene
    }
  }
  